//
//  MyUDP.h
//  MyScoketTest
//
//  Created by wilson_chen on 2009/12/30.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
@class MyUDP;

NSString * const TCPServerErrorDomain;

typedef enum {
    kTCPServerCouldNotBindToIPv4Address = 1,
    kTCPServerCouldNotBindToIPv6Address = 2,
    kTCPServerNoSocketsAvailable = 3,
} TCPServerErrorCode;


@interface MyUDP : NSObject {
@private
	id _delegate;
    uint16_t _port;
	CFSocketRef _ipv4socket;
	int sockobj;
}
- (BOOL)start:(NSError **)error;
- (BOOL)stop;
- (int)senddata;

@end
